#!/bin/sh
echo '请输入要停止的应用名称:'
read application
pids=`ps -ef | grep ${application} | grep -v "grep" | awk '{print $2}'`
for pid in ${pids}
do
  kill -9 ${pid}
done
echo '停止成功'
